{
	//简介表示法
	let o = 1;
	let k = 2;
	let es5 = {
		o: o,
		k: k
	}
	let es6 = {
		o,
		k
	};
	console.log(es5, es6);

	let es5_method = {
		hello: function() {
			console.log('hello');
		}
	};

	let es6_method = {
		hello() {
			console.log('hello');
		}
	};

	console.log(es5_method, es6_method);
}

{
	//属性表达式
	let a = 'b';
	let es5_obj = {
		a: 'c',
		b: 'c'
	};

	let es6_obj = {
		[a]: 'c'
	};

	console.log(es5_obj, es6_obj);
}

{
	//新增api
	console.log('字符串', Object.is('abc', 'abc'), 'abc' === 'abc');
	//引用类型
	console.log('数组', Object.is([], []), [] === []);
	//浅拷贝，拷贝引用地址
	console.log('拷贝', Object.assign({
		a: 'a'
	}, {
		b: 'b'
	}));

	let test = {
		k: 123,
		v: 456
	};
	for (let [key, value] of Object.entries(test)) {
		console.log([key, value]);
	}
}

